{template 'admin','header'}
{template 'admin','content_menu'}
<form method="post" name="myform" action="" onsubmit="return r_submit(this);">
<input type="hidden" name="catid" value="{$catid}">

<table cellpadding="0" cellspacing="1" class="table_list">
    <caption>回收站管理</caption>
    <tr>
        <th width="30">选中</th>
		<th>标题</th>
		<th width="100">状态</th>
		<th width="120">录入者</th>
		<th width="100">更新时间</th>
		<th width="130">管理操作</th>
    </tr>
    {loop $data $r}
    <tr>
        <td class="align_c"><input type="checkbox" size="5" name="selected[]" value="{$r['id']}"></td>
		<td class="align_l">{$r['title']}</td>
		<td class="align_c">{$status_list[$r['status']]}</td>
		<td class="align_c">{$r['username']}</td>
        <td class="align_c">{date('Y-m-d',$r['addtime'])}</td>
        <td class="align_c">
                {if $c->check_perms($catid, 'CON005')}
                <a href="{$self_url}?action=edit&catid={$r['catid']}&box=recycle_bin&id={$r['id']}&module={$module_name}">修改</a>
                {/if}
            </td>
    </tr>
    {/loop}
</table>
<div class="button_box">
    <a href="javascript:void(0);" onclick="$('form[name=myform]').find('input:checkbox').attr('checked','true')">全选</a>/<a href="javascript:void(0);" onclick="$('form[name=myform]').find('input:checkbox').attr('checked','')">取消</a>
    <input class="button_style" name="delete" type="button" value=" 彻底删除 " onclick="if(confirm('确定要永久删除所选择的内容吗？')){change_opt('myform','{$self_url}?action=delete_select&module={$module_name}');}">
    <input class="button_style" name="clear" type="button" value=" 清空回收站 " onclick="if(confirm('确定要彻底删除回收站的内容吗？')){change_opt('myform','{$self_url}?action=clear_all&module={$module_name}');}">
    <input class="button_style" name="go" type="button" value=" 还原 " onclick="if(confirm('确定要还原所选择的内容吗？')){change_opt('myform','{$self_url}?action=recover_select&module={$module_name}');}">
    <input class="button_style" name="go_all" type="button" value=" 全部还原 " onclick="if(confirm('确定要还原回收站里的所有内容吗？')){change_opt('myform','{$self_url}?action=recover_all&module={$module_name}');}">
    {if $module_name !='category'}<input type="button" value="返回上一级" onclick="self.location='{$back}'">{/if}
</div>
<div id="pages">{$pages}</div>
</form>
{template 'admin','footer'}